package com.atguigu.structure.decorator;

import java.math.BigDecimal;

public class Chocolate extends Decorator{
    public Chocolate(Drink drink) {
        super(drink);
        this.drink.description+="add:chocolate;";
        this.drink.cost=this.getCost().add(BigDecimal.valueOf(2));
    }
}
